package sq.dao;

import javax.persistence.*;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: sunquan
 * @Date: 2018/4/24
 * @Time: 19:05
 */

public class CountStatistics {
    private String name;
    private double sell;
    private Date period;
    private Long num;
    private Integer foodId;
    public  CountStatistics(double sell,Date period,Long num){
        this.sell = sell;
        this.period = period;
        this.num = num;
    }
    public  CountStatistics(String name,Long num){
        this.name=name;
        this.num = num;
    }
    public  CountStatistics(String name,Integer foodId){
        this.name=name;
        this.foodId = foodId;
    }

    public double getSell() {
        return sell;
    }

    public void setSell(double sell) {
        this.sell = sell;
    }

    public Date getPeriod() {
        return period;
    }

    public void setPeriod(Date period) {
        this.period = period;
    }

    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    @Override
    public String toString() {
        return "CountStatistics{" +
                "name='" + name + '\'' +
                ", sell=" + sell +
                ", period=" + period +
                ", num=" + num +
                '}';
    }
}
